CPP = g++
Flag = -g -fPIC

CPPS = $(wildcard *.cpp )
OBJS = $(patsubst %.cpp, %.o, $(CPPS))
INCLUDE = -I ./
TARGET = dbcconfigtest

.PHONY: all clean

all : $(TARGET)

$(OBJS): $(CPPS)
	$(CPP) $(Flag) -c  $(CPPS) $(INCLUDE)

$(TARGET):$(OBJS)
	$(CPP) $(Flag) -g -o $(TARGET) $(OBJS) 


clean:
		rm -f *.o $(TARGET)
